.resize-handle {
  background-color: #ccc;
  background-clip: content-box;
  z-index: 2;

  &:not(.disabled):hover { background-color: #b0b0b0; }

  &.left {
    border-right: 5px solid transparent;
    margin-right: -5px;
    width: 6px;
    cursor: ew-resize;
  }

  &.right {
    border-left: 5px solid transparent;
    margin-left: -5px;
    width: 6px;
    cursor: ew-resize;
  }

  &.top {
    border-bottom: 5px solid transparent;
    margin-bottom: -5px;
    height: 6px;
    cursor: ns-resize;
  }

  &.bottom {
    border-top: 5px solid transparent;
    margin-top: -5px;
    height: 6px;
    cursor: ns-resize;
  }

  &.disabled { cursor: default; }
}

html.handle-dragging {
  * {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
  }
  iframe { pointer-events: none; }

  &.vertical * { cursor: ew-resize; }
  &.horizontal * { cursor: ns-resize; }
}

.collapsable {
  display: flex;
  flex-flow: column;
  
  &.collapsed {
    min-height: 0 !important;
    height: auto !important;
  }

  .header {
    cursor: pointer;
    background-color: #444;
    color: #fff;
    display: flex;
    align-items: center;

    &.has-draft { background-color: #37d; }
    &.has-errors { background-color: #a44; }

    button.toggle {
      width: 30px;
      align-self: stretch;
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
      opacity: 0.5;
      font-size 20px
      font-weight: bold;
      cursor: pointer;
      color: #fff;

      &:hover {
        opacity: 1;
        background-color: rgba(0,0,0,0.1);
      }

      &:active {
        background-color: #fff;
        color: #444;
      }

      &:disabled {
        opacity: 0.2;
        cursor: default;
      }
    }
  }
}
